package cn.tedu.ivoscm.vehicle.mapper;

import cn.tedu.ivoscm.vehicle.pojo.dto.VehicleQuery;
import cn.tedu.ivoscm.vehicle.pojo.entity.Vehicle;
import cn.tedu.ivoscm.vehicle.pojo.vo.VehicleVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VehicleMapper {
    void insert(Vehicle vehicle);

    List<VehicleVO> select(VehicleQuery vq);

    void update(Vehicle vehicle);

    void deleteById(Long id);

    void unbind(Vehicle v);

    void bind(Vehicle v);

    void unbindAllThisGid(Vehicle v);
}
